 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
	</head>
	<body>
		<c:set var="page" value="${page }"/>
		<table border="1" width="50%">
			<thead>
				<tr>
					<th>帐号id</th>
					<th>邮箱</th>
					<th>昵称</th>
					<th>密码</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			<c:choose>
				<c:when test="${page ne null and page.list ne null }">
					<c:forEach items="${page.list }" var="a">
					<tr>
						<td>${a.announcementid }</td>
						<td>${a.announcementTitle } </td>
						<td>${a.announcementUploadtime }</td>
						<td>${a.announcemengContent }</td>
						
						<td>
							<a href="/GMS/delete?aid=${a.announcementid }">删除</a>
							<a href="/GMS/get?aid=${a.announcementid }">编辑</a>
						</td>
					</tr>
					</c:forEach>
				</c:when>
				<c:otherwise>
					<tr>
						<td colspan="5">查无数据</td>
					</tr>
				</c:otherwise>
			</c:choose>
		</tbody>
		</table>
	</body>
</html>